package com.xoa.model.workflow;

import com.xoa.model.users.Users;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by gsb on 2017/7/29.
 */
public class TriggerPlugIn implements Serializable {

    private  static final long serialVersionUID = 1L;

    private  String flowId;//流程ID

    private  String formmat;//格式

    private  String fromId;//发布人

    private Date  sendTime;//发布时间

    private  String subject;//标题

    private  String content;//内容

    private  String toId2;//收件人

    private  String flowPrcs;//当前步骤Id

    private  String  prcsId;//流程步骤

    private  String modify;//接受参数串：["key":"DATA_1","value":"2017年07月29日"]

    private  String reject;//接受参数串：["填表日期":"DATA_1"]

    private  String tableName;//表名

    private  String tabId;//表主键ID

    private  String runId; //流程ID

    private  String runName;//流程名字

    private  String  flag;//状态

    private Users users;//缺少的用户参数

    private  FlowFast flowFast;//缺少的工作流参数在里面找

    private HttpServletRequest request;

    private Integer notifyId;//触发器生成公告后的公告ID

    private  String sqlType;

    private  Integer hookId;

    private  String  distinguish;

    private String currentPrcsId;

    //触发器是否同步执行
    private boolean isSync = false;

    public String getCurrentPrcsId() {
        return currentPrcsId;
    }

    public void setCurrentPrcsId(String currentPrcsId) {
        this.currentPrcsId = currentPrcsId;
    }

    public boolean isSync() {
        return isSync;
    }

    public void setSync(boolean sync) {
        isSync = sync;
    }

    public String getDistinguish() {
        return distinguish;
    }

    public void setDistinguish(String distinguish) {
        this.distinguish = distinguish;
    }

    public Integer getHookId() {
        return hookId;
    }

    public void setHookId(Integer hookId) {
        this.hookId = hookId;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public Integer getNotifyId() {
        return notifyId;
    }

    public void setNotifyId(Integer notifyId) {
        this.notifyId = notifyId;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getFormmat() {
        return formmat;
    }

    public void setFormmat(String formmat) {
        this.formmat = formmat;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getToId2() {
        return toId2;
    }

    public void setToId2(String toId2) {
        this.toId2 = toId2;
    }

    public String getFlowPrcs() {
        return flowPrcs;
    }

    public void setFlowPrcs(String flowPrcs) {
        this.flowPrcs = flowPrcs;
    }

    public String getPrcsId() {
        return prcsId;
    }

    public void setPrcsId(String prcsId) {
        this.prcsId = prcsId;
    }

    public String getModify() {
        return modify;
    }

    public void setModify(String modify) {
        this.modify = modify;
    }

    public String getReject() {
        return reject;
    }

    public void setReject(String reject) {
        this.reject = reject;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTabId() {
        return tabId;
    }

    public void setTabId(String tabId) {
        this.tabId = tabId;
    }

    public String getRunId() {
        return runId;
    }

    public void setRunId(String runId) {
        this.runId = runId;
    }

    public String getRunName() {
        return runName;
    }

    public void setRunName(String runName) {
        this.runName = runName;
    }

    public FlowFast getFlowFast() {
        return flowFast;
    }

    public void setFlowFast(FlowFast flowFast) {
        this.flowFast = flowFast;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "TriggerPlugIn{" +
                "flowId='" + flowId + '\'' +
                ", formmat='" + formmat + '\'' +
                ", fromId='" + fromId + '\'' +
                ", sendTime=" + sendTime +
                ", subject='" + subject + '\'' +
                ", content='" + content + '\'' +
                ", toId2='" + toId2 + '\'' +
                ", flowPrcs='" + flowPrcs + '\'' +
                ", prcsId='" + prcsId + '\'' +
                ", modify='" + modify + '\'' +
                ", reject='" + reject + '\'' +
                ", tableName='" + tableName + '\'' +
                ", tabId='" + tabId + '\'' +
                ", runId='" + runId + '\'' +
                ", runName='" + runName + '\'' +
                ", users=" + users +
                ", flowFast=" + flowFast +
                '}';
    }
}
